//-----------------------------------------------------------------------
// <copyright file="ArticleBase.cs" company="FetCo">
//     Copyright (c) FetCo. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ADESSA.Entities
{
	[Serializable]
	public class ArticleBase
	{
		
		#region Variable Declarations
		public static string _Table = "Article";
		private long				articleId = 0;
		private long				subCatId = 0;
		private string				title = string.Empty;
		private string				summary = string.Empty;
		private string				content = string.Empty;
		private string				imageThumnail = string.Empty;
		private string				image = string.Empty;
		private bool				enable = false;
		private long				order = 0;
		private DateTime				createdDate = new DateTime(1900,1,1,0,0,0,0);
		private long				createdBy = 0;
		private DateTime				updatedDate = new DateTime(1900,1,1,0,0,0,0);
		private long				updatedBy = 0;
		private bool				approved = false;
		private long				status = 0;
		private long				parrentId = 0;
		private long				version = 0;
		private bool				hotNews = false;
		private string				titleEn = string.Empty;
		private string				summaryEn = string.Empty;
		private string				contentEn = string.Empty;
		private bool				vietnam = false;
		private bool				english = false;
		private string				price = string.Empty;
		private string				size = string.Empty;
		private bool				newPro = false;
		private string				codePro = string.Empty;
		#endregion
		
		#region Constructors
		public ArticleBase() {}
		
		public ArticleBase (
			long articleId,
			long subCatId,
			string title,
			string summary,
			string content,
			string imageThumnail,
			string image,
			bool enable,
			long order,
			DateTime createdDate,
			long createdBy,
			DateTime updatedDate,
			long updatedBy,
			bool approved,
			long status,
			long parrentId,
			long version,
			bool hotNews,
			string titleEn,
			string summaryEn,
			string contentEn,
			bool vietnam,
			bool english,
			string price,
			string size,
			bool newPro,
			string codePro)
		
		{
			this.articleId = articleId;
			this.subCatId = subCatId;
			this.title = title;
			this.summary = summary;
			this.content = content;
			this.imageThumnail = imageThumnail;
			this.image = image;
			this.enable = enable;
			this.order = order;
			this.createdDate = createdDate;
			this.createdBy = createdBy;
			this.updatedDate = updatedDate;
			this.updatedBy = updatedBy;
			this.approved = approved;
			this.status = status;
			this.parrentId = parrentId;
			this.version = version;
			this.hotNews = hotNews;
			this.titleEn = titleEn;
			this.summaryEn = summaryEn;
			this.contentEn = contentEn;
			this.vietnam = vietnam;
			this.english = english;
			this.price = price;
			this.size = size;
			this.newPro = newPro;
			this.codePro = codePro;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long ArticleId
		{
			get { return articleId; }
			set { articleId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long SubCatId
		{
			get { return subCatId; }
			set { subCatId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Title
		{
			get { return title; }
			set { title = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is ntext</value>
		public string Summary
		{
			get { return summary; }
			set { summary = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is ntext</value>
		public string Content
		{
			get { return content; }
			set { content = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ImageThumnail
		{
			get { return imageThumnail; }
			set { imageThumnail = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Image
		{
			get { return image; }
			set { image = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool Enable
		{
			get { return enable; }
			set { enable = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long Order
		{
			get { return order; }
			set { order = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime CreatedDate
		{
			get { return createdDate; }
			set { createdDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long CreatedBy
		{
			get { return createdBy; }
			set { createdBy = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime UpdatedDate
		{
			get { return updatedDate; }
			set { updatedDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long UpdatedBy
		{
			get { return updatedBy; }
			set { updatedBy = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool Approved
		{
			get { return approved; }
			set { approved = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long Status
		{
			get { return status; }
			set { status = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long ParrentId
		{
			get { return parrentId; }
			set { parrentId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long Version
		{
			get { return version; }
			set { version = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool HotNews
		{
			get { return hotNews; }
			set { hotNews = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string TitleEn
		{
			get { return titleEn; }
			set { titleEn = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is ntext</value>
		public string SummaryEn
		{
			get { return summaryEn; }
			set { summaryEn = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is ntext</value>
		public string ContentEn
		{
			get { return contentEn; }
			set { contentEn = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool Vietnam
		{
			get { return vietnam; }
			set { vietnam = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool English
		{
			get { return english; }
			set { english = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Price
		{
			get { return price; }
			set { price = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Size
		{
			get { return size; }
			set { size = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool NewPro
		{
			get { return newPro; }
			set { newPro = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string CodePro
		{
			get { return codePro; }
			set { codePro = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum ArticleColumns
	{
		ArticleId,
		SubCatId,
		Title,
		Summary,
		Content,
		ImageThumnail,
		Image,
		Enable,
		Order,
		CreatedDate,
		CreatedBy,
		UpdatedDate,
		UpdatedBy,
		Approved,
		Status,
		ParrentId,
		Version,
		HotNews,
		TitleEn,
		SummaryEn,
		ContentEn,
		Vietnam,
		English,
		Price,
		Size,
		NewPro,
		CodePro
	}//End enum
}